#cart {
    margin: 20px 0 40px;
}
.productTitle, .list, .total, .empty-cart {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.empty-cart {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px; /* 设置最小高度确保有足够空间显示居中内容 */
    text-align: center;
    font-family: Arial, sans-serif;
}

.empty-cart-message {
    margin: 20px 220px;
    max-width: 600px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.empty-cart-message p {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.return-home, .continue-shopping {
    display: inline-block;
    margin: 0 10px;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s;
}

.return-home:hover, .continue-shopping:hover {
    background-color: #f1f1f1;
}
/* 优化标题和总计样式 */
.productTitle, .total {
    height: 48px;
    line-height: 48px;
    background-color: #f8f9fa;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.productTitle {
    border-top: 2px solid #ff6b6b;
    color: #333;
    font-weight: 600;
}

.picTitle {
    width: 10%;
    text-align: center;
}

.numTitle {
    width: 15%;
    text-align: center;
}

.rmbTitle {
    width: 10%;
    text-align: center;
}

.total {
    border-bottom: 2px solid #ff6b6b;
    text-align: right;
    padding-right: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

#buyBtn {
    background-color: #9E1310;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

#buyBtn:hover {
    opacity: 0.9;
}
.total span {
    font-weight: 600;
    color: #ff6b6b;
    font-size: 24px;
}

.check, .all {
    width: 8%;
    text-align: center;
}

.info {
    width: 35%;
    display: flex;
    align-items: center;
}

.pic {
    width: 10%;
    text-align: center;
}

.num {
    width: 15%;
    text-align: center;
}

.rmb {
    width: 10%;
    text-align: center;
}

.handle {
    width: 10%;
    text-align: center;
}



/* 优化商品项样式 */
.product {
    padding: 24px 0;
    border-bottom: 1px solid #e9ecef;
    background-color: #fff;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.product:hover {
    background-color: #f8f9fa;
}

.product:last-child {
    border-bottom: none;
}

.product .info img {
    max-width: 80px;
    height: auto;
    border-radius: 4px;
    margin-right: 10px;
}

.product .info p {
    flex: 1;
    color: #495057;
    margin: 0;
}

/* 优化数量调整按钮样式 */
.product .num span, .product .num input {
    display: inline-block;
    vertical-align: middle;
}

.product .num span {
    width: 32px;
    height: 32px;
    line-height: 32px;
    background-color: #e9ecef;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.product .num span:hover {
    background-color: #dee2e6;
}

.product .num input {
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border: 1px solid #ced4da;
    border-radius: 4px;
    margin: 0 4px;
}

/* 优化删除按钮样式 */
.product .handle a {
    color: #ff6b6b;
    text-decoration: none;
    transition: color 0.2s;
}

.product .handle a:hover {
    color: #ff8787;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product {
        flex-direction: column;
        align-items: flex-start;
    }
    .check, .all, .info, .pic, .num, .rmb, .handle, .picTitle, .numTitle, .rmbTitle {
        width: 100%;
        text-align: left;
        margin-bottom: 10px;
    }
    .product .info {
        flex-direction: column;
        align-items: flex-start;
    }
    .product .info img {
        margin-bottom: 10px;
    }
}